﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MVCScaffold.Extensions
{
    public class Property
    {
        public string Name { get; set; }
        public Type Type { get; set; }
        public bool IsKey { get; set; }
        public string ColumnName { get; set; }
        

        public override string ToString()
        {
            if (IsKey)
                return String.Format("{0} - Key", Name);

            return Name;
        }
    }
}
